package com.zzpig.train.common.exception;

public enum BusinessExceptionEnum {
    MEMBER_MOBILE_EXIST("手机号已注册"),
    MEMBER_MOBILE_NOT_EXIST("请先获取验证码"),
    MEMBER_MOBILE_CODE_WRONG("验证码错误"),

    BUSINESS_STATION_NAME_UNIQUE_ERROR("站名已存在"),
    BUSINESS_TRAIN_CODE_UNIQUE_ERROR("车次编号已存在"),
    BUSINESS_TRAIN_STATION_INDEX_UNIQUE_ERROR("同车次站序已存在"),
    BUSINESS_TRAIN_STATION_NAME_UNIQUE_ERROR("同车次站名已存在"),
    BUSINESS_TRAIN_CARRIAGE_INDEX_UNIQUE_ERROR("同车次厢号已存在"),

    CONFIRM_ORDER_TICKET_COUNT_ERROR("余票不足"),

    CONFIRM_ORDER_EXCEPTION("购票出现异常，请稍后再试"),
    CONFIRM_ORDER_LOCK_FAIL("当前繁忙，稍后再试"),
    CONFIRM_ORDER_FLOW_EXCEPTION("当前抢票人数多，请稍后重试"),
    CONFIRM_ORDER_SKTOKEN_FAIL("操作频繁，请过5秒后重试")
    ;

    private String desc;

    BusinessExceptionEnum(String desc) {
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public String toString() {
        return "BusinessExceptionEnum{" +
                "desc='" + desc + '\'' +
                '}';
    }
}
